{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {
    "id": "aaaaaaaaaa"
   },
   "source": [
    "Git clone the repo and install the requirements. (ignore the pip errors about protobuf)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "ExecutionIndicator": {
     "show": true
    },
    "execution": {
     "iopub.execute_input": "2024-03-26T01:53:19.583538Z",
     "iopub.status.busy": "2024-03-26T01:53:19.583170Z",
     "iopub.status.idle": "2024-03-26T01:53:38.081899Z",
     "shell.execute_reply": "2024-03-26T01:53:38.081098Z",
     "shell.execute_reply.started": "2024-03-26T01:53:19.583509Z"
    },
    "id": "bbbbbbbbbb",
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "/mnt/workspace\n",
      "-= Initial setup ComfyUI =-\n",
      "正克隆到 'ComfyUI'...\n",
      "remote: Enumerating objects: 10461, done.\u001b[K\n",
      "remote: Counting objects: 100% (103/103), done.\u001b[K\n",
      "remote: Compressing objects: 100% (77/77), done.\u001b[K\n",
      "remote: Total 10461 (delta 49), reused 49 (delta 26), pack-reused 10358\u001b[K\n",
      "接收对象中: 100% (10461/10461), 4.18 MiB | 2.91 MiB/s, 完成.\n",
      "处理 delta 中: 100% (7031/7031), 完成.\n",
      "/mnt/workspace/ComfyUI\n",
      "-= Updating ComfyUI =-\n",
      "已经是最新的。\n",
      "/mnt/workspace/ComfyUI/custom_nodes\n",
      "-= Initial setup ComfyUI-Manager =-\n",
      "正克隆到 'ComfyUI-Manager'...\n",
      "remote: Enumerating objects: 7391, done.\u001b[K\n",
      "remote: Counting objects: 100% (1810/1810), done.\u001b[K\n",
      "remote: Compressing objects: 100% (498/498), done.\u001b[K\n",
      "remote: Total 7391 (delta 1400), reused 1522 (delta 1312), pack-reused 5581\u001b[K\n",
      "接收对象中: 100% (7391/7391), 4.92 MiB | 3.35 MiB/s, 完成.\n",
      "处理 delta 中: 100% (5368/5368), 完成.\n",
      "/mnt/workspace/ComfyUI/custom_nodes/ComfyUI-Manager\n",
      "已经是最新的。\n",
      "/mnt/workspace/ComfyUI/custom_nodes\n",
      "-= Initial setup AnimateDiff =-\n",
      "正克隆到 'ComfyUI-AnimateDiff-Evolved'...\n",
      "remote: Enumerating objects: 1546, done.\u001b[K\n",
      "remote: Counting objects: 100% (570/570), done.\u001b[K\n",
      "remote: Compressing objects: 100% (101/101), done.\u001b[K\n",
      "remote: Total 1546 (delta 507), reused 510 (delta 469), pack-reused 976\u001b[K\n",
      "接收对象中: 100% (1546/1546), 584.38 KiB | 637.00 KiB/s, 完成.\n",
      "处理 delta 中: 100% (1079/1079), 完成.\n",
      "/mnt/workspace/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved\n",
      "已经是最新的。\n",
      "/mnt/workspace/ComfyUI\n",
      "/mnt/workspace/ComfyUI\n",
      "-= Install custom nodes dependencies =-\n",
      "## Install dependencies for 'ComfyUI-AnimateDiff-Evolved'\n",
      "## Install dependencies for 'ComfyUI-Manager'\n",
      "Looking in indexes: https://mirrors.aliyun.com/pypi/simple\n",
      "Collecting GitPython (from -r custom_nodes/ComfyUI-Manager/requirements.txt (line 1))\n",
      "  Downloading https://mirrors.aliyun.com/pypi/packages/67/c7/995360c87dd74e27539ccbfecddfb58e08f140d849fcd7f35d2ed1a5f80f/GitPython-3.1.42-py3-none-any.whl (195 kB)\n",
      "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m195.4/195.4 kB\u001b[0m \u001b[31m1.6 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
      "\u001b[?25hCollecting matrix-client==0.4.0 (from -r custom_nodes/ComfyUI-Manager/requirements.txt (line 2))\n",
      "  Downloading https://mirrors.aliyun.com/pypi/packages/61/00/f10d4b5d72c5afb9b703ea0cabbea1670cd20159afe1764f4322d00dec99/matrix_client-0.4.0-py2.py3-none-any.whl (43 kB)\n",
      "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m43.5/43.5 kB\u001b[0m \u001b[31m896.8 kB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
      "\u001b[?25hRequirement already satisfied: transformers in /opt/conda/lib/python3.10/site-packages (from -r custom_nodes/ComfyUI-Manager/requirements.txt (line 3)) (4.38.2)\n",
      "Requirement already satisfied: huggingface-hub>0.20 in /opt/conda/lib/python3.10/site-packages (from -r custom_nodes/ComfyUI-Manager/requirements.txt (line 4)) (0.20.3)\n",
      "Requirement already satisfied: requests~=2.22 in /opt/conda/lib/python3.10/site-packages (from matrix-client==0.4.0->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 2)) (2.31.0)\n",
      "Requirement already satisfied: urllib3~=1.21 in /opt/conda/lib/python3.10/site-packages (from matrix-client==0.4.0->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 2)) (1.26.16)\n",
      "Collecting gitdb<5,>=4.0.1 (from GitPython->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 1))\n",
      "  Downloading https://mirrors.aliyun.com/pypi/packages/fd/5b/8f0c4a5bb9fd491c277c21eff7ccae71b47d43c4446c9d0c6cff2fe8c2c4/gitdb-4.0.11-py3-none-any.whl (62 kB)\n",
      "\u001b[2K     \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m62.7/62.7 kB\u001b[0m \u001b[31m4.2 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0m\n",
      "\u001b[?25hRequirement already satisfied: filelock in /opt/conda/lib/python3.10/site-packages (from transformers->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 3)) (3.13.1)\n",
      "Requirement already satisfied: numpy>=1.17 in /opt/conda/lib/python3.10/site-packages (from transformers->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 3)) (1.26.3)\n",
      "Requirement already satisfied: packaging>=20.0 in /opt/conda/lib/python3.10/site-packages (from transformers->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 3)) (23.1)\n",
      "Requirement already satisfied: pyyaml>=5.1 in /opt/conda/lib/python3.10/site-packages (from transformers->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 3)) (6.0.1)\n",
      "Requirement already satisfied: regex!=2019.12.17 in /opt/conda/lib/python3.10/site-packages (from transformers->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 3)) (2023.12.25)\n",
      "Requirement already satisfied: tokenizers<0.19,>=0.14 in /opt/conda/lib/python3.10/site-packages (from transformers->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 3)) (0.15.1)\n",
      "Requirement already satisfied: safetensors>=0.4.1 in /opt/conda/lib/python3.10/site-packages (from transformers->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 3)) (0.4.1)\n",
      "Requirement already satisfied: tqdm>=4.27 in /opt/conda/lib/python3.10/site-packages (from transformers->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 3)) (4.65.0)\n",
      "Requirement already satisfied: fsspec>=2023.5.0 in /opt/conda/lib/python3.10/site-packages (from huggingface-hub>0.20->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 4)) (2023.10.0)\n",
      "Requirement already satisfied: typing-extensions>=3.7.4.3 in /opt/conda/lib/python3.10/site-packages (from huggingface-hub>0.20->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 4)) (4.9.0)\n",
      "Collecting smmap<6,>=3.0.1 (from gitdb<5,>=4.0.1->GitPython->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 1))\n",
      "  Downloading https://mirrors.aliyun.com/pypi/packages/a7/a5/10f97f73544edcdef54409f1d839f6049a0d79df68adbc1ceb24d1aaca42/smmap-5.0.1-py3-none-any.whl (24 kB)\n",
      "Requirement already satisfied: charset-normalizer<4,>=2 in /opt/conda/lib/python3.10/site-packages (from requests~=2.22->matrix-client==0.4.0->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 2)) (2.0.4)\n",
      "Requirement already satisfied: idna<4,>=2.5 in /opt/conda/lib/python3.10/site-packages (from requests~=2.22->matrix-client==0.4.0->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 2)) (3.4)\n",
      "Requirement already satisfied: certifi>=2017.4.17 in /opt/conda/lib/python3.10/site-packages (from requests~=2.22->matrix-client==0.4.0->-r custom_nodes/ComfyUI-Manager/requirements.txt (line 2)) (2023.11.17)\n",
      "\u001b[33mDEPRECATION: pytorch-lightning 1.7.7 has a non-standard dependency specifier torch>=1.9.*. pip 24.0 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of pytorch-lightning or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063\u001b[0m\u001b[33m\n",
      "\u001b[0mInstalling collected packages: smmap, matrix-client, gitdb, GitPython\n",
      "Successfully installed GitPython-3.1.42 gitdb-4.0.11 matrix-client-0.4.0 smmap-5.0.1\n",
      "\u001b[33mWARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv\u001b[0m\u001b[33m\n",
      "\u001b[0m\n",
      "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m A new release of pip is available: \u001b[0m\u001b[31;49m23.3.2\u001b[0m\u001b[39;49m -> \u001b[0m\u001b[32;49m24.0\u001b[0m\n",
      "\u001b[1m[\u001b[0m\u001b[34;49mnotice\u001b[0m\u001b[1;39;49m]\u001b[0m\u001b[39;49m To update, run: \u001b[0m\u001b[32;49mpip install --upgrade pip\u001b[0m\n"
     ]
    }
   ],
   "source": [
    "# #@title Environment Setup\n",
    "\n",
    "from pathlib import Path\n",
    "\n",
    "OPTIONS = {}\n",
    "UPDATE_COMFY_UI = True  #@param {type:\"boolean\"}\n",
    "INSTALL_COMFYUI_MANAGER = True  #@param {type:\"boolean\"}\n",
    "INSTALL_ANIMATEDIFF = True  #@param {type:\"boolean\"}\n",
    "INSTALL_CUSTOM_NODES_DEPENDENCIES = True  #@param {type:\"boolean\"}\n",
    "OPTIONS['UPDATE_COMFY_UI'] = UPDATE_COMFY_UI\n",
    "OPTIONS['INSTALL_COMFYUI_MANAGER'] = INSTALL_COMFYUI_MANAGER\n",
    "OPTIONS['INSTALL_ANIMATEDIFF'] = INSTALL_ANIMATEDIFF\n",
    "OPTIONS['INSTALL_CUSTOM_NODES_DEPENDENCIES'] = INSTALL_CUSTOM_NODES_DEPENDENCIES\n",
    "\n",
    "current_dir = !pwd\n",
    "WORKSPACE = f\"{current_dir[0]}/ComfyUI\"\n",
    "\n",
    "\n",
    "\n",
    "%cd /mnt/workspace/\n",
    "\n",
    "![ ! -d $WORKSPACE ] && echo -= Initial setup ComfyUI =- && git clone https://github.com/comfyanonymous/ComfyUI\n",
    "%cd $WORKSPACE\n",
    "\n",
    "if OPTIONS['UPDATE_COMFY_UI']:\n",
    "  !echo \"-= Updating ComfyUI =-\"\n",
    "  !git pull\n",
    "\n",
    "\n",
    "if OPTIONS['INSTALL_COMFYUI_MANAGER']:\n",
    "  %cd custom_nodes\n",
    "  ![ ! -d ComfyUI-Manager ] && echo -= Initial setup ComfyUI-Manager =- && git clone https://github.com/ltdrdata/ComfyUI-Manager\n",
    "  %cd ComfyUI-Manager\n",
    "  !git pull\n",
    "\n",
    "if OPTIONS['INSTALL_ANIMATEDIFF']:\n",
    "  %cd ../\n",
    "  ![ ! -d ComfyUI-AnimateDiff-Evolved ] && echo -= Initial setup AnimateDiff =- && git clone https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved\n",
    "  %cd ComfyUI-AnimateDiff-Evolved\n",
    "  !git pull\n",
    "\n",
    "%cd $WORKSPACE\n",
    "\n",
    "if OPTIONS['INSTALL_CUSTOM_NODES_DEPENDENCIES']:\n",
    "  !pwd\n",
    "  !echo \"-= Install custom nodes dependencies =-\"\n",
    "  ![ -f \"custom_nodes/ComfyUI-Manager/scripts/colab-dependencies.py\" ] && python \"custom_nodes/ComfyUI-Manager/scripts/colab-dependencies.py\"\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "id": "cccccccccc"
   },
   "source": [
    "Download some models/checkpoints/vae or custom comfyui nodes (uncomment the commands for the ones you want)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {
    "ExecutionIndicator": {
     "show": true
    },
    "execution": {
     "iopub.execute_input": "2024-03-26T01:54:08.546105Z",
     "iopub.status.busy": "2024-03-26T01:54:08.545744Z",
     "iopub.status.idle": "2024-03-26T01:59:50.690751Z",
     "shell.execute_reply": "2024-03-26T01:59:50.690166Z",
     "shell.execute_reply.started": "2024-03-26T01:54:08.546085Z"
    },
    "id": "dddddddddd",
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "--2024-03-26 09:54:08--  https://modelscope.cn/api/v1/models/AI-ModelScope/stable-diffusion-xl-base-1.0/repo?Revision=master&FilePath=sd_xl_base_1.0.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.145.247, 10.224.140.111, 10.224.132.175, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.145.247|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 6938078334 (6.5G) [application/octet-stream]\n",
      "正在保存至: ‘./models/checkpoints/repo?Revision=master&FilePath=sd_xl_base_1.0.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]   6.46G   136MB/s    用时 56s     \n",
      "\n",
      "2024-03-26 09:55:04 (119 MB/s) - 已保存 ‘./models/checkpoints/repo?Revision=master&FilePath=sd_xl_base_1.0.safetensors’ [6938078334/6938078334])\n",
      "\n",
      "--2024-03-26 09:55:05--  https://modelscope.cn/api/v1/models/AI-ModelScope/stable-diffusion-xl-refiner-1.0/repo?Revision=master&FilePath=sd_xl_refiner_1.0.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.145.247, 10.224.132.175, 10.224.160.117, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.145.247|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 6075981930 (5.7G) [application/octet-stream]\n",
      "正在保存至: ‘./models/checkpoints/repo?Revision=master&FilePath=sd_xl_refiner_1.0.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]   5.66G  44.1MB/s    用时 99s     \n",
      "\n",
      "2024-03-26 09:56:45 (58.5 MB/s) - 已保存 ‘./models/checkpoints/repo?Revision=master&FilePath=sd_xl_refiner_1.0.safetensors’ [6075981930/6075981930])\n",
      "\n",
      "--2024-03-26 09:56:45--  https://modelscope.cn/api/v1/models/AI-ModelScope/stable-diffusion-v1-5/repo?Revision=master&FilePath=v1-5-pruned-emaonly.ckpt\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.160.117, 10.224.145.247, 10.224.140.111, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.160.117|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 4265380512 (4.0G) [application/octet-stream]\n",
      "正在保存至: ‘./models/checkpoints/repo?Revision=master&FilePath=v1-5-pruned-emaonly.ckpt’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]   3.97G   122MB/s    用时 35s     \n",
      "\n",
      "2024-03-26 09:57:20 (116 MB/s) - 已保存 ‘./models/checkpoints/repo?Revision=master&FilePath=v1-5-pruned-emaonly.ckpt’ [4265380512/4265380512])\n",
      "\n",
      "--2024-03-26 09:57:20--  https://modelscope.cn/api/v1/models/AI-ModelScope/sdxl-vae-fp16-fix/repo?Revision=master&FilePath=diffusion_pytorch_model.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.132.175, 10.224.160.117, 10.224.145.247, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.132.175|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 334643238 (319M) [application/octet-stream]\n",
      "正在保存至: ‘./models/vae/sdxl-vae-fp16-fix.safetensors’\n",
      "\n",
      "./models/vae/sdxl-v 100%[===================>] 319.14M   314MB/s    用时 1.0s    \n",
      "\n",
      "2024-03-26 09:57:22 (314 MB/s) - 已保存 ‘./models/vae/sdxl-vae-fp16-fix.safetensors’ [334643238/334643238])\n",
      "\n",
      "--2024-03-26 09:57:22--  https://modelscope.cn/api/v1/models/AI-ModelScope/sd-vae-ft-mse-original/repo?Revision=master&FilePath=vae-ft-mse-840000-ema-pruned.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.160.117, 10.224.145.247, 10.224.140.111, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.160.117|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 334641190 (319M) [application/octet-stream]\n",
      "正在保存至: ‘./models/vae/repo?Revision=master&FilePath=vae-ft-mse-840000-ema-pruned.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 319.14M   192MB/s    用时 1.7s    \n",
      "\n",
      "2024-03-26 09:57:24 (192 MB/s) - 已保存 ‘./models/vae/repo?Revision=master&FilePath=vae-ft-mse-840000-ema-pruned.safetensors’ [334641190/334641190])\n",
      "\n",
      "--2024-03-26 09:57:24--  https://modelscope.cn/api/v1/models/AI-ModelScope/control-lora/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-canny-rank256.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.132.175, 10.224.160.117, 10.224.145.247, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.132.175|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 774450192 (739M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-canny-rank256.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 738.57M   168MB/s    用时 3.6s    \n",
      "\n",
      "2024-03-26 09:57:29 (204 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-canny-rank256.safetensors’ [774450192/774450192])\n",
      "\n",
      "--2024-03-26 09:57:29--  https://modelscope.cn/api/v1/models/AI-ModelScope/control-lora/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-depth-rank256.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.160.117, 10.224.140.111, 10.224.145.247, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.160.117|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 774445779 (739M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-depth-rank256.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 738.57M   121MB/s    用时 5.1s    \n",
      "\n",
      "2024-03-26 09:57:35 (146 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-depth-rank256.safetensors’ [774445779/774445779])\n",
      "\n",
      "--2024-03-26 09:57:35--  https://modelscope.cn/api/v1/models/AI-ModelScope/control-lora/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-recolor-rank256.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.160.117, 10.224.140.111, 10.224.145.247, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.160.117|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 774446618 (739M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-recolor-rank256.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 738.57M   126MB/s    用时 5.2s    \n",
      "\n",
      "2024-03-26 09:57:40 (143 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-recolor-rank256.safetensors’ [774446618/774446618])\n",
      "\n",
      "--2024-03-26 09:57:41--  https://modelscope.cn/api/v1/models/AI-ModelScope/control-lora/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-sketch-rank256.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.145.247, 10.224.132.175, 10.224.160.117, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.145.247|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 774454911 (739M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-sketch-rank256.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 738.58M   123MB/s    用时 5.0s    \n",
      "\n",
      "2024-03-26 09:57:46 (147 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-sketch-rank256.safetensors’ [774454911/774454911])\n",
      "\n",
      "--2024-03-26 09:57:46--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11e_sd15_ip2p_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.145.247, 10.224.132.175, 10.224.160.117, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.145.247|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11e_sd15_ip2p_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M   122MB/s    用时 4.9s    \n",
      "\n",
      "2024-03-26 09:57:52 (141 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11e_sd15_ip2p_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:57:52--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11e_sd15_shuffle_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.132.175, 10.224.160.117, 10.224.140.111, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.132.175|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11e_sd15_shuffle_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M   148MB/s    用时 5.9s    \n",
      "\n",
      "2024-03-26 09:57:58 (117 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11e_sd15_shuffle_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:57:58--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_canny_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.160.117, 10.224.140.111, 10.224.145.247, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.160.117|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_canny_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M   130MB/s    用时 4.7s    \n",
      "\n",
      "2024-03-26 09:58:04 (148 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_canny_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:58:04--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11f1p_sd15_depth_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.160.117, 10.224.145.247, 10.224.140.111, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.160.117|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11f1p_sd15_depth_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M   122MB/s    用时 4.9s    \n",
      "\n",
      "2024-03-26 09:58:09 (141 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11f1p_sd15_depth_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:58:10--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_inpaint_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.145.247, 10.224.140.111, 10.224.132.175, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.145.247|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_inpaint_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M   122MB/s    用时 4.7s    \n",
      "\n",
      "2024-03-26 09:58:15 (148 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_inpaint_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:58:15--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_lineart_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.132.175, 10.224.160.117, 10.224.140.111, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.132.175|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_lineart_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M   156MB/s    用时 6.7s    \n",
      "\n",
      "2024-03-26 09:58:22 (102 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_lineart_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:58:23--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_mlsd_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.140.111, 10.224.132.175, 10.224.160.117, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.140.111|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_mlsd_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M   123MB/s    用时 4.7s    \n",
      "\n",
      "2024-03-26 09:58:28 (147 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_mlsd_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:58:28--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_normalbae_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.145.247, 10.224.140.111, 10.224.132.175, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.145.247|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_normalbae_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M   124MB/s    用时 4.7s    \n",
      "\n",
      "2024-03-26 09:58:33 (146 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_normalbae_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:58:33--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_openpose_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.140.111, 10.224.132.175, 10.224.160.117, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.140.111|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_openpose_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M  82.5MB/s    用时 6.3s    \n",
      "\n",
      "2024-03-26 09:58:40 (109 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_openpose_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:58:40--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_scribble_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.132.175, 10.224.160.117, 10.224.140.111, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.132.175|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_scribble_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M   207MB/s    用时 3.3s    \n",
      "\n",
      "2024-03-26 09:58:44 (207 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_scribble_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:58:44--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_seg_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.140.111, 10.224.145.247, 10.224.132.175, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.140.111|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_seg_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M   126MB/s    用时 4.7s    \n",
      "\n",
      "2024-03-26 09:58:50 (148 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_seg_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:58:50--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_softedge_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.160.117, 10.224.140.111, 10.224.145.247, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.160.117|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_softedge_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M   123MB/s    用时 4.7s    \n",
      "\n",
      "2024-03-26 09:58:55 (148 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15_softedge_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:58:55--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15s2_lineart_anime_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.140.111, 10.224.145.247, 10.224.132.175, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.140.111|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15s2_lineart_anime_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M   122MB/s    用时 4.7s    \n",
      "\n",
      "2024-03-26 09:59:00 (146 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11p_sd15s2_lineart_anime_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:59:01--  https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11u_sd15_tile_fp16.safetensors\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.132.175, 10.224.160.117, 10.224.140.111, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.132.175|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 722601100 (689M) [application/octet-stream]\n",
      "正在保存至: ‘./models/controlnet/repo?Revision=master&FilePath=control_v11u_sd15_tile_fp16.safetensors’\n",
      "\n",
      "repo?Revision=maste 100%[===================>] 689.13M   204MB/s    用时 3.4s    \n",
      "\n",
      "2024-03-26 09:59:05 (204 MB/s) - 已保存 ‘./models/controlnet/repo?Revision=master&FilePath=control_v11u_sd15_tile_fp16.safetensors’ [722601100/722601100])\n",
      "\n",
      "--2024-03-26 09:59:05--  https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=mm_sd_v14.ckpt\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.145.247, 10.224.132.175, 10.224.160.117, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.145.247|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 1672133921 (1.6G) [application/octet-stream]\n",
      "正在保存至: ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/models/repo?Revision=master&FilePath=mm_sd_v14.ckpt’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]   1.56G   114MB/s    用时 12s     \n",
      "\n",
      "2024-03-26 09:59:18 (129 MB/s) - 已保存 ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/models/repo?Revision=master&FilePath=mm_sd_v14.ckpt’ [1672133921/1672133921])\n",
      "\n",
      "--2024-03-26 09:59:18--  https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=mm_sd_v15.ckpt\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.132.175, 10.224.160.117, 10.224.140.111, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.132.175|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 1672133921 (1.6G) [application/octet-stream]\n",
      "正在保存至: ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/models/repo?Revision=master&FilePath=mm_sd_v15.ckpt’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]   1.56G   185MB/s    用时 11s     \n",
      "\n",
      "2024-03-26 09:59:30 (142 MB/s) - 已保存 ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/models/repo?Revision=master&FilePath=mm_sd_v15.ckpt’ [1672133921/1672133921])\n",
      "\n",
      "--2024-03-26 09:59:30--  https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=mm_sd_v15_v2.ckpt\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.132.175, 10.224.160.117, 10.224.140.111, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.132.175|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 1817888431 (1.7G) [application/octet-stream]\n",
      "正在保存至: ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/models/repo?Revision=master&FilePath=mm_sd_v15_v2.ckpt’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]   1.69G   177MB/s    用时 11s     \n",
      "\n",
      "2024-03-26 09:59:41 (159 MB/s) - 已保存 ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/models/repo?Revision=master&FilePath=mm_sd_v15_v2.ckpt’ [1817888431/1817888431])\n",
      "\n",
      "--2024-03-26 09:59:41--  https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_PanLeft.ckpt\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.145.247, 10.224.140.111, 10.224.132.175, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.145.247|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 77474499 (74M) [application/octet-stream]\n",
      "正在保存至: ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_PanLeft.ckpt’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]  73.88M   233MB/s    用时 0.3s    \n",
      "\n",
      "2024-03-26 09:59:42 (233 MB/s) - 已保存 ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_PanLeft.ckpt’ [77474499/77474499])\n",
      "\n",
      "--2024-03-26 09:59:42--  https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_PanRight.ckpt\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.145.247, 10.224.132.175, 10.224.160.117, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.145.247|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 77474499 (74M) [application/octet-stream]\n",
      "正在保存至: ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_PanRight.ckpt’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]  73.88M   276MB/s    用时 0.3s    \n",
      "\n",
      "2024-03-26 09:59:43 (276 MB/s) - 已保存 ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_PanRight.ckpt’ [77474499/77474499])\n",
      "\n",
      "--2024-03-26 09:59:43--  https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_RollingAnticlockwise.ckpt\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.145.247, 10.224.140.111, 10.224.132.175, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.145.247|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 77474499 (74M) [application/octet-stream]\n",
      "正在保存至: ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_RollingAnticlockwise.ckpt’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]  73.88M   268MB/s    用时 0.3s    \n",
      "\n",
      "2024-03-26 09:59:44 (268 MB/s) - 已保存 ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_RollingAnticlockwise.ckpt’ [77474499/77474499])\n",
      "\n",
      "--2024-03-26 09:59:44--  https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_RollingClockwise.ckpt\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.145.247, 10.224.140.111, 10.224.132.175, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.145.247|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 77474499 (74M) [application/octet-stream]\n",
      "正在保存至: ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_RollingClockwise.ckpt’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]  73.88M   314MB/s    用时 0.2s    \n",
      "\n",
      "2024-03-26 09:59:45 (314 MB/s) - 已保存 ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_RollingClockwise.ckpt’ [77474499/77474499])\n",
      "\n",
      "--2024-03-26 09:59:45--  https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_TiltDown.ckpt\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.132.175, 10.224.160.117, 10.224.145.247, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.132.175|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 77474499 (74M) [application/octet-stream]\n",
      "正在保存至: ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_TiltDown.ckpt’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]  73.88M  84.7MB/s    用时 0.9s    \n",
      "\n",
      "2024-03-26 09:59:47 (84.7 MB/s) - 已保存 ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_TiltDown.ckpt’ [77474499/77474499])\n",
      "\n",
      "--2024-03-26 09:59:47--  https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_TiltUp.ckpt\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.160.117, 10.224.145.247, 10.224.140.111, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.160.117|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 77474499 (74M) [application/octet-stream]\n",
      "正在保存至: ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_TiltUp.ckpt’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]  73.88M   174MB/s    用时 0.4s    \n",
      "\n",
      "2024-03-26 09:59:48 (174 MB/s) - 已保存 ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_TiltUp.ckpt’ [77474499/77474499])\n",
      "\n",
      "--2024-03-26 09:59:48--  https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_ZoomIn.ckpt\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.140.111, 10.224.145.247, 10.224.132.175, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.140.111|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 77474499 (74M) [application/octet-stream]\n",
      "正在保存至: ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_ZoomIn.ckpt’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]  73.88M   206MB/s    用时 0.4s    \n",
      "\n",
      "2024-03-26 09:59:49 (206 MB/s) - 已保存 ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_ZoomIn.ckpt’ [77474499/77474499])\n",
      "\n",
      "--2024-03-26 09:59:49--  https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_ZoomOut.ckpt\n",
      "正在解析主机 modelscope.cn (modelscope.cn)... 10.224.132.175, 10.224.160.117, 10.224.140.111, ...\n",
      "正在连接 modelscope.cn (modelscope.cn)|10.224.132.175|:443... 已连接。\n",
      "已发出 HTTP 请求，正在等待回应... 200 OK\n",
      "长度： 77474499 (74M) [application/octet-stream]\n",
      "正在保存至: ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_ZoomOut.ckpt’\n",
      "\n",
      "repo?Revision=maste 100%[===================>]  73.88M   237MB/s    用时 0.3s    \n",
      "\n",
      "2024-03-26 09:59:50 (237 MB/s) - 已保存 ‘./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/repo?Revision=master&FilePath=v2_lora_ZoomOut.ckpt’ [77474499/77474499])\n",
      "\n"
     ]
    }
   ],
   "source": [
    "#@markdown ###Download standard resources\n",
    "\n",
    "### SDXL\n",
    "### I recommend these workflow examples: https://comfyanonymous.github.io/ComfyUI_examples/sdxl/\n",
    "\n",
    "OPTIONS = {}\n",
    "\n",
    "#@markdown **Models**\n",
    "\n",
    "SDXL_1_0_BASE_AND_REFINER = True  #@param {type:\"boolean\"}\n",
    "OPTIONS['SDXL_1_0_BASE_AND_REFINER'] = SDXL_1_0_BASE_AND_REFINER\n",
    "\n",
    "if OPTIONS['SDXL_1_0_BASE_AND_REFINER']:\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/stable-diffusion-xl-base-1.0/repo?Revision=master&FilePath=sd_xl_base_1.0.safetensors\" -P ./models/checkpoints/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/stable-diffusion-xl-refiner-1.0/repo?Revision=master&FilePath=sd_xl_refiner_1.0.safetensors\" -P ./models/checkpoints/\n",
    "\n",
    "\n",
    "SD_1_5_MODEL = True  #@param {type:\"boolean\"}\n",
    "OPTIONS['SD_1_5_MODEL'] = SD_1_5_MODEL\n",
    "\n",
    "if OPTIONS['SD_1_5_MODEL']:\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/stable-diffusion-v1-5/repo?Revision=master&FilePath=v1-5-pruned-emaonly.ckpt\" -P ./models/checkpoints/\n",
    "\n",
    "\n",
    "#@markdown **VAEs**\n",
    "\n",
    "SDXL_1_0_VAE = True  #@param {type:\"boolean\"}\n",
    "OPTIONS['SDXL_1_0_VAE'] = SDXL_1_0_VAE\n",
    "\n",
    "if OPTIONS['SDXL_1_0_VAE']:\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/sdxl-vae-fp16-fix/repo?Revision=master&FilePath=diffusion_pytorch_model.safetensors\" -O ./models/vae/sdxl-vae-fp16-fix.safetensors #sdxl-vae-fp16-fix.safetensors\n",
    "\n",
    "SD_1_5_VAE = True  #@param {type:\"boolean\"}\n",
    "OPTIONS['SD_1_5_VAE'] = SD_1_5_VAE\n",
    "\n",
    "if OPTIONS['SD_1_5_VAE']:\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/sd-vae-ft-mse-original/repo?Revision=master&FilePath=vae-ft-mse-840000-ema-pruned.safetensors\" -P ./models/vae/\n",
    "\n",
    "\n",
    "#@markdown **Controlnets**\n",
    "\n",
    "SDXL_1_0_CONTROLNETS = True  #@param {type:\"boolean\"}\n",
    "OPTIONS['SDXL_1_0_CONTROLNETS'] = SDXL_1_0_CONTROLNETS\n",
    "\n",
    "if OPTIONS['SDXL_1_0_CONTROLNETS']:\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/control-lora/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-canny-rank256.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/control-lora/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-depth-rank256.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/control-lora/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-recolor-rank256.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/control-lora/repo?Revision=master&FilePath=control-LoRAs-rank256%2Fcontrol-lora-sketch-rank256.safetensors\" -P ./models/controlnet/\n",
    "\n",
    "SD_1_5_CONTROLNETS = True  #@param {type:\"boolean\"}\n",
    "OPTIONS['SD_1_5_CONTROLNETS'] = SD_1_5_CONTROLNETS\n",
    "\n",
    "if OPTIONS['SD_1_5_CONTROLNETS']:\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11e_sd15_ip2p_fp16.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11e_sd15_shuffle_fp16.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_canny_fp16.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11f1p_sd15_depth_fp16.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_inpaint_fp16.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_lineart_fp16.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_mlsd_fp16.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_normalbae_fp16.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_openpose_fp16.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_scribble_fp16.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_seg_fp16.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15_softedge_fp16.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11p_sd15s2_lineart_anime_fp16.safetensors\" -P ./models/controlnet/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/AI-ModelScope/ControlNet-v1-1_fp16_safetensors/repo?Revision=master&FilePath=control_v11u_sd15_tile_fp16.safetensors\" -P ./models/controlnet/\n",
    "\n",
    "\n",
    "#@markdown **AnimateDiff**\n",
    "\n",
    "AD_MOTION_MODELS = True  #@param {type:\"boolean\"}\n",
    "OPTIONS['AD_MOTION_MODELS'] = AD_MOTION_MODELS\n",
    "\n",
    "if OPTIONS['AD_MOTION_MODELS']:\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=mm_sd_v14.ckpt\" -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/models/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=mm_sd_v15.ckpt\" -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/models/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=mm_sd_v15_v2.ckpt\" -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/models/\n",
    "\n",
    "AD_MOTION_LORAS = True  #@param {type:\"boolean\"}\n",
    "OPTIONS['AD_MOTION_LORAS'] = AD_MOTION_LORAS\n",
    "\n",
    "if OPTIONS['AD_MOTION_LORAS']:\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_PanLeft.ckpt\" -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_PanRight.ckpt\" -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_RollingAnticlockwise.ckpt\" -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_RollingClockwise.ckpt\" -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_TiltDown.ckpt\" -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_TiltUp.ckpt\" -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_ZoomIn.ckpt\" -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/\n",
    "  !wget -c \"https://modelscope.cn/api/v1/models/Shanghai_AI_Laboratory/animatediff/repo?Revision=master&FilePath=v2_lora_ZoomOut.ckpt\" -P ./custom_nodes/ComfyUI-AnimateDiff-Evolved/motion_lora/\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "id": "kkkkkkkkkkkkkkk"
   },
   "source": [
    "### Run ComfyUI with cloudflared (Recommended Way)\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {
    "ExecutionIndicator": {
     "show": false
    },
    "execution": {
     "iopub.execute_input": "2024-03-26T02:24:15.626087Z",
     "iopub.status.busy": "2024-03-26T02:24:15.625669Z",
     "iopub.status.idle": "2024-03-26T02:37:00.423473Z",
     "shell.execute_reply": "2024-03-26T02:37:00.422887Z",
     "shell.execute_reply.started": "2024-03-26T02:24:15.626057Z"
    },
    "id": "jjjjjjjjjjjjjj",
    "scrolled": true,
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "/mnt/workspace/ComfyUI\n",
      "** ComfyUI startup time: 2024-03-26 10:24:15.727821\n",
      "** Platform: Linux\n",
      "** Python version: 3.10.13 (main, Sep 11 2023, 13:44:35) [GCC 11.2.0]\n",
      "** Python executable: /opt/conda/bin/python\n",
      "** Log path: /mnt/workspace/ComfyUI/comfyui.log\n",
      "\n",
      "#######################################################################\n",
      "[ComfyUI-Manager] Starting dependency installation/(de)activation for the extension\n",
      "\n",
      "\n",
      "[ComfyUI-Manager] Startup script completed.\n",
      "#######################################################################\n",
      "\n",
      "\n",
      "Prestartup times for custom nodes:\n",
      "   0.0 seconds: /mnt/workspace/ComfyUI/custom_nodes/ComfyUI-Manager\n",
      "\n",
      "Total VRAM 22732 MB, total RAM 29863 MB\n",
      "xformers version: 0.0.23.post1\n",
      "Set vram state to: NORMAL_VRAM\n",
      "Device: cuda:0 NVIDIA A10 : cudaMallocAsync\n",
      "VAE dtype: torch.bfloat16\n",
      "Using xformers cross attention\n",
      "Making the \"web\\extensions\\FizzleDorf\" folder\n",
      "Update to javascripts files detected\n",
      "Copying Folder here to satisfy init, eventually I'll have stuff in here..txt to extensions folder\n",
      "NumExpr defaulting to 8 threads.\n",
      "/mnt/workspace/ComfyUI/custom_nodes/ComfyUI_FizzNodes/ScheduleFuncs.py:26: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?\n",
      "  if max_size is 0:\n",
      "/mnt/workspace/ComfyUI/custom_nodes/ComfyUI_FizzNodes/BatchFuncs.py:178: SyntaxWarning: \"is\" with a literal. Did you mean \"==\"?\n",
      "  if max_size is 0:\n",
      "\u001b[34mFizzleDorf Custom Nodes: \u001b[92mLoaded\u001b[0m\n",
      "### Loading: ComfyUI-Manager (V2.10.3)\n",
      "### ComfyUI Revision: 2083 [ae77590b] | Released on '2024-03-25'\n",
      "\n",
      "Import times for custom nodes:\n",
      "   0.0 seconds: /mnt/workspace/ComfyUI/custom_nodes/websocket_image_save.py\n",
      "   0.0 seconds: /mnt/workspace/ComfyUI/custom_nodes/ComfyUI-AnimateDiff-Evolved\n",
      "   0.1 seconds: /mnt/workspace/ComfyUI/custom_nodes/ComfyUI-Manager\n",
      "   0.3 seconds: /mnt/workspace/ComfyUI/custom_nodes/ComfyUI-VideoHelperSuite\n",
      "   0.7 seconds: /mnt/workspace/ComfyUI/custom_nodes/ComfyUI_FizzNodes\n",
      "\n",
      "\n",
      "ComfyUI finished loading, trying to launch cloudflared (if it gets stuck here cloudflared is having issues)\n",
      "\n",
      "[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json\n",
      "[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json\n",
      "This is the URL to access ComfyUI: https://mineral-asus-consolidated-bleeding.trycloudflare.com                              |\n",
      "[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json\n",
      "[ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json\n",
      "FETCH DATA from: /mnt/workspace/ComfyUI/custom_nodes/ComfyUI-Manager/extension-node-map.json\n",
      "got prompt\n",
      "model_type EPS\n",
      "Using xformers attention in VAE\n",
      "Using xformers attention in VAE\n",
      "clip missing: ['clip_l.logit_scale', 'clip_l.transformer.text_projection.weight']\n",
      "[AnimateDiffEvo] - \u001b[0;32mINFO\u001b[0m - Loading motion module repo?Revision=master&FilePath=mm_sd_v15_v2.ckpt via Gen2\n",
      "/opt/conda/lib/python3.10/site-packages/torch/_utils.py:831: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly.  To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()\n",
      "  return self.fget.__get__(instance, owner)()\n",
      "[AnimateDiffEvo] - \u001b[0;32mINFO\u001b[0m - [Autoselect]: 'sqrt_linear (AnimateDiff)' beta_schedule for repo?Revision=master&FilePath=mm_sd_v15_v2.ckpt:v2:AnimateDiff:SD1.5\n",
      "Requested to load SD1ClipModel\n",
      "Loading 1 new model\n",
      "[AnimateDiffEvo] - \u001b[0;32mINFO\u001b[0m - Regular AnimateDiff activated - latents passed in (16) less or equal to context_length None.\n",
      "[AnimateDiffEvo] - \u001b[0;32mINFO\u001b[0m - Using motion module repo?Revision=master&FilePath=mm_sd_v15_v2.ckpt:v2.\n",
      "Requested to load BaseModel\n",
      "Requested to load AnimateDiffModel\n",
      "Loading 2 new models\n",
      "100%|███████████████████████████████████████████| 20/20 [00:19<00:00,  1.02it/s]\n",
      "Using xformers attention in VAE\n",
      "Using xformers attention in VAE\n",
      "Requested to load AutoencoderKL\n",
      "Loading 1 new model\n",
      "Prompt executed in 48.46 seconds\n",
      "FETCH DATA from: /mnt/workspace/ComfyUI/custom_nodes/ComfyUI-Manager/.cache/1514988643_custom-node-list.json\n",
      "FETCH DATA from: /mnt/workspace/ComfyUI/custom_nodes/ComfyUI-Manager/.cache/1742899825_extension-node-map.json\n",
      "got prompt\n",
      "Prompt executed in 0.00 seconds\n",
      "got prompt\n",
      "Prompt executed in 0.00 seconds\n",
      "got prompt\n",
      "Prompt executed in 0.00 seconds\n",
      "got prompt\n",
      "Prompt executed in 0.00 seconds\n",
      "got prompt\n",
      "[AnimateDiffEvo] - \u001b[0;32mINFO\u001b[0m - Regular AnimateDiff activated - latents passed in (16) less or equal to context_length None.\n",
      "[AnimateDiffEvo] - \u001b[0;32mINFO\u001b[0m - Using motion module repo?Revision=master&FilePath=mm_sd_v15_v2.ckpt:v2.\n",
      "100%|███████████████████████████████████████████| 20/20 [00:18<00:00,  1.06it/s]\n",
      "Prompt executed in 23.24 seconds\n",
      "FETCH DATA from: /mnt/workspace/ComfyUI/custom_nodes/ComfyUI-Manager/.cache/1514988643_custom-node-list.json\n",
      "FETCH DATA from: /mnt/workspace/ComfyUI/custom_nodes/ComfyUI-Manager/.cache/1742899825_extension-node-map.json\n",
      "^C\n",
      "\n",
      "Stopped server\n"
     ]
    }
   ],
   "source": [
    "!wget \"https://modelscope.oss-cn-beijing.aliyuncs.com/resource/cloudflared-linux-amd64.deb\"\n",
    "!dpkg -i cloudflared-linux-amd64.deb\n",
    "\n",
    "%cd /mnt/workspace/ComfyUI\n",
    "import subprocess\n",
    "import threading\n",
    "import time\n",
    "import socket\n",
    "import urllib.request\n",
    "\n",
    "def iframe_thread(port):\n",
    "  while True:\n",
    "      time.sleep(0.5)\n",
    "      sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n",
    "      result = sock.connect_ex(('127.0.0.1', port))\n",
    "      if result == 0:\n",
    "        break\n",
    "      sock.close()\n",
    "  print(\"\\nComfyUI finished loading, trying to launch cloudflared (if it gets stuck here cloudflared is having issues)\\n\")\n",
    "\n",
    "  p = subprocess.Popen([\"cloudflared\", \"tunnel\", \"--url\", \"http://127.0.0.1:{}\".format(port)], stdout=subprocess.PIPE, stderr=subprocess.PIPE)\n",
    "  for line in p.stderr:\n",
    "    l = line.decode()\n",
    "    if \"trycloudflare.com \" in l:\n",
    "      print(\"This is the URL to access ComfyUI:\", l[l.find(\"http\"):], end='')\n",
    "    #print(l, end='')\n",
    "\n",
    "\n",
    "threading.Thread(target=iframe_thread, daemon=True, args=(8188,)).start()\n",
    "\n",
    "!python main.py --dont-print-server"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {
    "id": "kkkkkkkkkkkkkk"
   },
   "source": [
    "### Run ComfyUI with localtunnel\n",
    "\n",
    "\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "ExecutionIndicator": {
     "show": true
    },
    "execution": {
     "iopub.execute_input": "2024-03-20T07:55:34.777470Z",
     "iopub.status.busy": "2024-03-20T07:55:34.777140Z",
     "iopub.status.idle": "2024-03-20T07:57:08.532198Z",
     "shell.execute_reply": "2024-03-20T07:57:08.531669Z",
     "shell.execute_reply.started": "2024-03-20T07:55:34.777450Z"
    },
    "id": "jjjjjjjjjjjjj",
    "tags": []
   },
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "\u001b[K\u001b[?25h/etc/dsw/node/bin/lt -> /etc/dsw/node/lib/node_modules/localtunnel/bin/lt.js yargs@17.1.1 is installed in\u001b[0m\u001b[Km\u001b[K\n",
      "+ localtunnel@2.0.2\n",
      "added 22 packages from 22 contributors in 11.176s\n",
      "/mnt/workspace/ComfyUI\n",
      "Total VRAM 22732 MB, total RAM 29863 MB\n",
      "xformers version: 0.0.23.post1\n",
      "Set vram state to: NORMAL_VRAM\n",
      "Device: cuda:0 NVIDIA A10 : cudaMallocAsync\n",
      "VAE dtype: torch.bfloat16\n",
      "Using xformers cross attention\n",
      "****** User settings have been changed to be stored on the server instead of browser storage. ******\n",
      "****** For multi-user setups add the --multi-user CLI argument to enable multiple user profiles. ******\n",
      "\n",
      "ComfyUI finished loading, trying to launch localtunnel (if it gets stuck here localtunnel is having issues)\n",
      "\n",
      "The password/enpoint ip for localtunnel is: 118.178.240.30\n",
      "your url is: https://odd-peas-brush.loca.lt\n",
      "^C\n",
      "\n",
      "Stopped server\n"
     ]
    }
   ],
   "source": [
    "!npm install -g localtunnel\n",
    "%cd /mnt/workspace/ComfyUI\n",
    "import subprocess\n",
    "import threading\n",
    "import time\n",
    "import socket\n",
    "import urllib.request\n",
    "\n",
    "def iframe_thread(port):\n",
    "  while True:\n",
    "      time.sleep(0.5)\n",
    "      sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)\n",
    "      result = sock.connect_ex(('127.0.0.1', port))\n",
    "      if result == 0:\n",
    "        break\n",
    "      sock.close()\n",
    "  print(\"\\nComfyUI finished loading, trying to launch localtunnel (if it gets stuck here localtunnel is having issues)\\n\")\n",
    "\n",
    "  print(\"The password/enpoint ip for localtunnel is:\", urllib.request.urlopen('https://ipv4.icanhazip.com').read().decode('utf8').strip(\"\\n\"))\n",
    "  p = subprocess.Popen([\"lt\", \"--port\", \"{}\".format(port)], stdout=subprocess.PIPE)\n",
    "  for line in p.stdout:\n",
    "    print(line.decode(), end='')\n",
    "\n",
    "\n",
    "threading.Thread(target=iframe_thread, daemon=True, args=(8188,)).start()\n",
    "\n",
    "!python main.py --dont-print-server"
   ]
  }
 ],
 "metadata": {
  "accelerator": "GPU",
  "colab": {
   "provenance": []
  },
  "gpuClass": "standard",
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.10.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
